<?php
class Default_Model_DbTable_Page extends Zend_Db_Table_Abstract
{
	protected $_name="hae_page";
	protected $_primary="id";
	protected $_sequence=true;
	
	public function getdetailpage($id) {
	    
	    //Locale
	    $locale = new HAE_Element_Locale();
	    $lang = $locale->getLocale();
	    
		$select = $this->select();
		$select->from($this->_name,array('id','desc_'.$lang.' AS des'));
		$select->where('id = '.$id);
		return $this->fetchRow($select)->toArray();
	}
}
?>